From 04139cb3edeb4b596e89c98435afd19ed6be85fb Mon Sep 17 00:00:00 2001 From: ameerj <52414509+ameerj@users.noreply.github.com> Date: Wed, 8 Feb 2023 19:34:39 -0500 Subject: glsl_emit_context: Remove redeclarations of gl_SampleID and gl_SampleMask These built-ins seem to be available without needing to be declared for fragment shaders, similar i.e. to gl_FragDepth --- src/shader_recompiler/backend/glsl/glsl_emit_context.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp b/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp index 1b006e811..c3c2281bb 100644 --- a/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp +++ b/src/shader_recompiler/backend/glsl/glsl_emit_context.cpp @@ -310,12 +310,6 @@ EmitContext::EmitContext(IR::Program& program, Bindings& bindings, const Profile if (runtime_info.force_early_z) { header += "layout(early_fragment_tests)in;"; } - if (info.uses_sample_id) { - header += "in int gl_SampleID;"; - } - if (info.stores_sample_mask) { - header += "out int gl_SampleMask[];"; - } break; case Stage::Compute: stage_name = "cs"; -- cgit v1.2.3